<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt" %>

<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html lang="zh-cn">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width,initial-scale=1.0,maximum-scale=1.0,user-scalable=no">
    <title>山河旅行社</title>
    <link rel="stylesheet" href="css/styles.css">
    <link type="text/css" href="css/css.css" rel="stylesheet" />

</head>
<body>
<header id="header">
    <jsp:include page="../leading/head.jsp"/>
</header>


<div id="headline">
    <img src="img/headline.jpg" alt="">
    <hgroup>
        <h2>个人中心</h2>
        <h3>啦啦啦啦啦啦啦啦啦啦啦啦啦</h3>
    </hgroup>
</div>


    <div id="container">
        <div class="vipBox">
            <div class="vipLeft">
                <h2 class="headImg"><img src="images/vipImg.jpg" width="183" height="169" /></h2>
                <dl class="vipNav">
                    <dd class="ddCur"><a href="getOrder.html">我的订单</a></dd>
                    <dd class="ddCur"><a href="getTickets.html">机票订单</a></dd>
                </dl><!--vipNav/-->
            </div><!--vipLeft/-->
            <div class="vipRight">
                <h2 class="vipTitle">机票订单</h2>

                <h2 class="oredrName">
                    机票订单
                </h2>
                <table class="vipOrder">
                    <c:forEach items="${ticketList}" var="list">
                    <tr>
                        <td >${list.airTicket.origin}--${list.airTicket.destination}</td>
                        <td >￥${list.airTicket.price}</td>
                        <td >${list.orderTime}</td>
                        <c:if test="${list.settleAccounts == 1}">
                        <td><a href="#"><strong>
                            未付款
                        </strong></a></td>
                        <td><a href="#">去支付</a></td>
                        </c:if>
                        <c:if test="${list.settleAccounts == 2}">
                            <td><a href="#"><strong>
                                已付款
                            </strong></a></td>
                            <td><a href="#">-----</a></td>
                        </c:if>
                    </tr>
                    </c:forEach>

                </table><!--vipOrder/-->
            </div><!--vipRight/-->

        </div>
    </div>
</div>

<footer id="footer">
    <jsp:include page="../leading/below.jsp"/>
</footer>

</body>

<script type="text/javascript">
//    $(function(){
//        $("tr:odd").css("background-color","yellow")
//    })
    function page(pn) {
        if (pn == null || isNaN(pn)) {
            pn = 1
        }
        if (pn < 1) {
            pn == 1;
        }
        if (pn > "${pageInfo.totalPage}") {
            pn = "${pageInfo.totalPage}";
        }
        $("#pageNum").val(pn);
        $("#searchForm").submit();
    }
</script>
</html>
